<?php
#
# MONKA
#
$CONFIG['monka.url']  = (isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].preg_replace('/\?.*$/', '', $_SERVER['REQUEST_URI']);
$CONFIG['monka.path'] = dirname(__FILE__);

if (!(isset($CONFIG['monka.path.includes']) && is_array($CONFIG['monka.path.includes']))) {
	$CONFIG['monka.path.includes'] = array();
}

$CONFIG['monka.path.includes'][] = './';
$CONFIG['monka.path.includes'][] = dirname(__FILE__);

$CONFIG['monka.file_data.dir']  = '';
$CONFIG['monka.file_data.size'] = 10240;

$CONFIG['monka.tmp.dir'] = function_exists('sys_get_temp_dir')?sys_get_temp_dir():'/tmp/';

#
# ERROR
#
$CONFIG['error.verbose'] = true;

#
# PARTIAL
#
$CONFIG['partial.title']         = 'Monka | Framework | GNUCITIZEN';
$CONFIG['partial.body_id']       = 'reception';
$CONFIG['partial.body_class']    = '';
$CONFIG['partial.url']           = htmlspecialchars($_SERVER['REQUEST_URI']);
$CONFIG['partial.name']          = 'Monka';
$CONFIG['partial.subtitle']      = 'Monka | Framework | GNUCITIZEN';
$CONFIG['partial.content_id']    = 'content';
$CONFIG['partial.content_class'] = '';
$CONFIG['partial.org_date']      = '2005-'.date('Y');
$CONFIG['partial.org_name']      = 'GNUCITIZEN';
$CONFIG['partial.org_url']       = 'http://www.gnucitizen.org';

#
# OPENID
#
$CONFIG['openid.onfail']   = '';
$CONFIG['openid.onlogin']  = '';
$CONFIG['openid.onerror']  = '';
$CONFIG['openid.oncancel'] = '';
$CONFIG['openid.onlogout'] = '';

$CONFIG['openid.fields.required'] = array('email','fullname');
$CONFIG['openid.fields.optional'] = array('dob','gender','postcode','country','language','timezone');

#
# PAYPAL
#
$CONFIG['paypal.business'] = 'YOUR PAYPAL (OR SANDBOX) EMAIL ADDRESS HERE!';
$CONFIG['paypal.onreturn'] = '';
$CONFIG['paypal.oncancel'] = '';
$CONFIG['paypal.onnotify'] = '';

#
# CAPTOR
#
$CONFIG['captor.font']   = dirname(__FILE__).'/__f.captor.ttf';
$CONFIG['captor.width']  = 120;
$CONFIG['captor.height'] = 40;
$CONFIG['captor.length'] = 6;
